objs 		= main.o lcn.o cmd.o 
target 		= lcn
CFLAGS 		= -Wall -Wextra -Werror -Iinclude -g 


$(target): 	$(objs)
	@$(CC) $(objs) -o $(target) $(CFLAGS)
	@echo -e "\tLD\t\t\t$(target)"

%.o: %.c 
	@$(CC) $*.c -c $(CFLAGS)
	@echo -e "\tCC\t\t\t$*.c"

.PHONY clean: 
	rm -f $(objs) $(target)

